import VueRouter from "vue-router"

// 子路由
import master from "./master"
import note from "./note"
import xbig from "./xbig"

// 组件
import Main from "@/components/main/Main"
import Master from "@/components/master/Master"
import Note from "@/components/note/Note"
import Xbig from "@/components/xbig/Xbig"

const router = new VueRouter({
    routes: [{
            path: "/main",
            name: "main",
            component: Main
        },
        {
            path: "/master",
            name: "master",
            redirect: "/master/zsctask",
            component: Master,
            children: [
                ...master,
            ]
        },
        {
            path: "/note",
            name: "note",
            component: Note,
            children: [
                ...note,

            ]
        },
        {
            path: "/xbig",
            name: "xbig",
            redirect: "/xbig/clock",
            component: Xbig,
            children: [
                ...xbig,
            ]
        },
        {
            path: "*",
            redirect: "/main"
        }
    ]
})

export default router